package d3_for_moive;

import java.util.ArrayList;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;

public class test {
    public static void main(String[] args) {
        //Collection<moive> moives = new ArrayList<>();
        Set<moive> moives = new HashSet<moive>();
        moives.add(new moive("啊大苏打",9.8,"阿迪斯"));
        moives.add(new moive("的撒反对",9.7,"分手就不能"));
        moives.add(new moive("官方代表",9.6,"大大"));
        moives.add(new moive("官方代表",9.6,"大大"));
        System.out.println(moives);

        for (moive m : moives) {
            System.out.println(m.getName());
            System.out.println(m.getScore());
            System.out.println(m.getActor());
        }
        //---------------------------------------------------------------//

    }
}
